package gui.commons;
import gui.mainView.UIView;

import javax.swing.JLabel;


public class playerTimeGesture extends Thread {

	UIView parent;
	
	public playerTimeGesture(UIView parent){
		this.parent = parent;
	}
	
	public void run(){
		/*while(true){
			this.parent.barTime.setValue((int)(this.parent.ourMediaPlayer.getMediaPlayer().getPosition()*1000000));
			int time = (int)((float)(this.parent.ourMediaPlayer.getMediaPlayer().getLength())*((float)(this.parent.ourMediaPlayer.getMediaPlayer().getPosition())/1000));
			int timeLeft = ((int)(this.parent.ourMediaPlayer.getMediaPlayer().getLength()/1000))-time;
			this.parent.duration.setText("-"+ timeLeft/60 + ":" + timeLeft%60);
			this.parent.time.setText("  " + time/60 + ":" + time%60);
			this.parent.pan3.validate();
			if((int)(this.parent.ourMediaPlayer.getMediaPlayer().getPosition()*100) == 100){
				break;
			}
		}*/
	}
}
